//获取分页输入框里传来的页数,并根据页数，跳转到相应的页面
function jumpToPage(){
	var page = document.getElementById("textfield").value;
	if(getPage(page)){
		window.location.href='../../action/templateAction.php?op=query&p='+page;
	}
}
//删除确认
function invalid(id){
	if(window.confirm("此操作无法恢复，确定删除吗？")){  
		//alert(id);
		window.location="../../action/templateAction.php?op=del&id="+id;//后台删除处理  
	} 
}

//附件上传
function upload(){
	ret=window.showModalDialog("uploadWindow.php",null,"dialogWidth:400px;dialogHeight:300px;help:no;scrollbar:no;resizable:no;status:no");
}